package com.example.teesystem.entity.vo.assistant;
import com.example.teesystem.common.valid.ValidErrorMessage;
import com.example.teesystem.common.valid.ValidId;
import lombok.Data;

import javax.validation.constraints.Min;

@Data
public class AssistantUpdateVo {

    /**
     * 课程Id
     */
    @ValidId(message = ValidErrorMessage.USER_ID_VALID_FAIL,ifCourseId = true)
    private Integer courseId;

    /**
     * 助教Id
     */
    @ValidId(message = ValidErrorMessage.USER_ID_VALID_FAIL,ifUserId = true)
    private Integer assistantId;

    /**
     * 助教权限
     */
    @Min(value = 0, message = ValidErrorMessage.ASSISTANT_PERMISSION_VALID_FAIL)
    private long permission;
}
